package com.cloud.shopping.search.feign;

import com.cloud.shopping.search.model.SeckillGoodsEs;
import com.cloud.shopping.tool.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author John.Zhang
 * @version Id: SeckillGoodsSearchFeign, v 0.1 2021/1/8 11:27 ZhiYong Exp $
 */
@FeignClient(value = "shopping-search")
public interface SeckillGoodsSearchFeign {

    /**
     * 将秒杀商品导入索引库
     * @param seckillGoodsEs seckillGoodsEs
     * @return RespResult
     */
    @PostMapping("/seckill/goods/add")
    RespResult add(@RequestBody SeckillGoodsEs seckillGoodsEs);
}
